package com.jijidom.product.service;

import com.jijidom.product.dataobject.ProductCategory;
import com.jijidom.product.repository.ProductCategoryRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName
 * @Description TODO
 * @Author JinTao
 * @Date 2018/9/6 14:53
 * @Version 1.0
 **/
@Service
public class CategoryService {

    @Autowired
    private ProductCategoryRepository productCategoryRepository;
    public List<ProductCategory> findByCategoryType(List<Integer> categoryTypeList) {
        return productCategoryRepository.findByCategoryType(categoryTypeList);
    }
}
